package cj.com.chabaike.ui.frag;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import cj.com.chabaike.R;
import cj.com.chabaike.ui.act.WelcomePager;


public class ExplainLastFragment extends Fragment {
	public ExplainLastFragment() {
		// TODO Auto-generated constructor stub
	}
	
	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		
		View view = inflater.inflate(R.layout.explainfragment, null, false);
		LinearLayout ll = (LinearLayout) view.findViewById(R.id.explainLast);
		ll.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent("newsmainpager");
				startActivity(intent);
				getActivity().overridePendingTransition(R.anim.slide_up, R.anim.scale_down);
				//getActivity().overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
				Log.e("welcomepager", "docontinue");
				getActivity().finish();

			}
		});
		
		return view;
	}

}
